﻿using DataServer.ApplicationLib.Entities;
using DataServer.CommonLib.Models.DataConfig;
using Swimj.Core.DependencyInjection;
using Swimj.DataCore;

namespace DataServer.ApplicationLib.Repositories
{
    public interface IConfigRuleRepository : IScopedDependency
    {
        Task<Tuple<IEnumerable<ConfigRuleEntity>, int>> QueryRulesByPageConfigAsync(string configCode, ConfigRuleSearchRequestDto model);

        Task<IEnumerable<ConfigRuleEntity>> QueryRulesByConfigAsync(string configCode, ConfigRuleSearchRequestDto model);
    }
}
